﻿using System;
using System.Collections.Generic;
using System.Text;
using Cn.Cellula.Biz.Port;
using Cn.Cellula.Model.System;

namespace Cn.Cellula.Biz.Impl {
    class DbBiz:MyBizSupport,IDbBiz {
        #region IDbBiz 成员

        public void ClearTableData(IList<String> rKeys) {
            try {
                foreach (String k in rKeys) {
                    TSysTableEO eo = base.Load<TSysTableEO>(k);
                    if (eo.IsClearable == 1) {
                        String hql = " from " + eo.EoName;
                        base.Delete(hql);
                    }
                }
            } catch { 
            
            }
        }

        #endregion
    }
}
